import request from '@/utils/request'

// 获取文件夹列表
export function listNetdiskFolder(params) {
  return request({
    url: '/netdisk/folder/list',  // 确保路径正确
    method: 'get',
    params: params
  })
}
// 获取文件夹列表(分页)
export function pageNetdiskFolder(params) {
  return request({
    url: '/netdisk/folder/page',
    method: 'get',
    params: params
  })
}
// 创建文件夹
export function createNetdiskFolder(data) {
  return request({
    url: '/netdisk/folder',
    method: 'post',
    data
  })
}
// 更新文件夹
export function updateNetdiskFolder(data) {
  return request({
    url: '/netdisk/folder',
    method: 'put',
    data
  })
}
// 删除文件夹
export function deleteNetdiskFolder(data) {
  return request({
    url: '/netdisk/folder',
    method: 'delete',
    data
  })
}



